package com.zyz.order.controller;

import com.zyz.product.api.ProductInterface;
import com.zyz.product.model.ProductInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class FeignController{
    @Autowired
    private ProductInterface productApi;

    public ProductInfo getProductInfo(Integer productId) {
        return null;
    }

    @RequestMapping("/o1")
    public String o1(Integer id) {
        return productApi.o1(id);
    }
}
